﻿/***************************************************************
 * Name:      MinesweeperApp.cpp
 * Purpose:   Code for Application Class
 * Author:    PhoenixWright (cbx945+dev@gmail.com)
 * Created:   2011-04-30
 * Copyright: PhoenixWright (http://www.itcbx.com)
 * License:
 **************************************************************/

#ifdef WX_PRECOMP
#include "wx_pch.h"
#endif

#ifdef __BORLANDC__
#pragma hdrstop
#endif //__BORLANDC__


#include "MinesweeperApp.h"
#include "MinesweeperMain.h"

IMPLEMENT_APP(MinesweeperApp);
DECLARE_APP(MinesweeperApp);

bool MinesweeperApp::OnInit()
{
    wxImage::AddHandler(new wxJPEGHandler);
    MinesweeperFrame* frame = new MinesweeperFrame(0L, _("Minesweeper"));
    frame->SetIcon(wxICON(aaaa)); // To Set App Icon
    frame->Show();

    return true;
}
